package com.ruoyi.my.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("my_file")
public class MyFile {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String bucketName;

    private String firstDirectory;

    private String secondDirectory;

    private Integer sectionProjectId;

    private String fileType;

    //字段插入自动填充
    @TableField(fill = FieldFill.INSERT)
    //转换返回的时间格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}
